#include <stdio.h>
int main()
{
	//获取参数方式 scanf
    //int x  =0;
    //int y = 0;
    //scanf("%d", &x);

    //结果输出使用prinf
    //printf("%d",x);

 	// 请在此添加你的代码
    /********** Begin *********/
    double pill, totle, change, bed, day, pay;
    printf("请输入药品费、床位费/天、住院天数:");
    scanf("%lf%lf%lf", &pill, &bed, &day);
    totle = pill + bed * day;
    printf("应付款:%.2f\n实付款:", totle);
    scanf("%lf", &pay);
    change = pay - totle;
    printf("应找零:%.2f\n", change);
	/********** End **********/

}
